import Count from './components/Count'
import React, { Component } from 'react'

export default class App extends Component {
  state = {
    msg: 'hello',
  }
  render() {
    console.log('app组件挂载或更新了')
    return (
      <div>
        <h1>App组件</h1>
        <button
          onClick={() => {
            this.setState({
              msg: 'redux',
            })
          }}
        >
          按钮
        </button>
        <hr />
        <Count msg={this.state.msg}></Count>
      </div>
    )
  }
}
